package com.svse.services.impl;

import com.svse.entity.SysLogEntity;
import com.svse.dao.SysLogMapper;
import com.svse.services.SysLogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * <p>
 * 系统日志表 服务实现类
 * </p>
 *
 * @author 李宇航
 * @since 2019-10-30
 */
@Service
public class SysLogImpl extends ServiceImpl<SysLogMapper, SysLogEntity> implements SysLogService {
    @Autowired
    private SysLogMapper sysLogMapper;

    @Override
    public void removeAll() {
        sysLogMapper.removeAll();
    }

    @Override
    public Long findTotalVisitCount() {
        return sysLogMapper.findTotalVisitCount();
    }

    @Override
    public Long findTodayVisitCount(Date dayStart, Date dayEnd) {
        return sysLogMapper.findTodayVisitCount(dayStart,dayEnd);
    }

    @Override
    public Long findTodayIp(Date dayStart, Date dayEnd) {
        return sysLogMapper.findTodayIp(dayStart,dayEnd);
    }
}
